#ifndef FRIENDORGROUPINFORMWIDGET_H
#define FRIENDORGROUPINFORMWIDGET_H

#include <QWidget>
#include "protocol.h"
#include <QScrollArea>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QVariant>
#include <QMap>
#include <QSpacerItem>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonDocument>
namespace Ui {
class FriendOrGroupInformWidget;
}

class FriendOrGroupInformWidget : public QWidget
{
    Q_OBJECT

public:
    explicit FriendOrGroupInformWidget(long long MSG_TYPE_INFO=0,QWidget *parent = nullptr);
    ~FriendOrGroupInformWidget();

private:
    Ui::FriendOrGroupInformWidget *ui;

    QVBoxLayout *MainLayout;

    QVBoxLayout *BodyLayout;

    QWidget *Head;

    long long MsgTypeInfo;

    void InitForUi();

    void LinkUiToUiSiganlAndSlot();

    void LinkTcpSignalAndSlot();

public slots:
    void OnSetFriendInformListItem(QList<QMap<QString,QVariant>> InfoList);
signals:
    void Sig_FriendInformPull(myuint Type,QJsonObject Info);

    void Sig_GroupInformPull(myuint Type,QJsonObject Info);

};

#endif // FRIENDORGROUPINFORMWIDGET_H
